package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.base.mapper.voipmapper.RechargeratiosMapper;
import com.base.po.sqlparam.RechargeratiosExamplePage;
import com.base.po.voip.Rechargeratios;
import com.base.po.voip.RechargeratiosExample;
import com.base.service.RechargeratiosService;
import org.springframework.stereotype.Service;

@Service("rechargeratiosService")
public class RechargeratiosServiceImpl implements RechargeratiosService {
	@Autowired
	RechargeratiosMapper rechargeratiosMapper;

	@Override
	public int countByExample(RechargeratiosExample example) {
		return rechargeratiosMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(RechargeratiosExample example) {
		return rechargeratiosMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return rechargeratiosMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Rechargeratios record) {
		return rechargeratiosMapper.insert(record);
	}

	@Override
	public int insertSelective(Rechargeratios record) {
		return rechargeratiosMapper.insertSelective(record);
	}

	@Override
	public List<Rechargeratios> selectByExample(RechargeratiosExample example) {
		return rechargeratiosMapper.selectByExample(example);
	}

	@Override
	public List<Rechargeratios> selectByExamplePage(RechargeratiosExamplePage example) {
		// TODO Auto-generated method stub
		return rechargeratiosMapper.selectByExamplePage(example);
	}
	
	@Override
	public Rechargeratios selectByPrimaryKey(String id) {
		if (id == null || id.isEmpty()) {
			return null;
		}
		return rechargeratiosMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(Rechargeratios record, RechargeratiosExample example) {
		return rechargeratiosMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Rechargeratios record, RechargeratiosExample example) {
		return rechargeratiosMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Rechargeratios record) {
		return rechargeratiosMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Rechargeratios record) {
		return rechargeratiosMapper.updateByPrimaryKey(record);
	}


}
